import { Injectable } from '@angular/core';
import { BaseHttpService } from '../shared/base-http.service';

@Injectable()
export class ProductService {

  constructor(private http: BaseHttpService) {
  }

  getUsers(pageSize: number, pageNum: number): Promise<any> {
    return this.http.get("admin/api/product/list", "pageSize=" + pageSize + "&pageNum=" + pageNum, false);
    //return this.http.get("assets/en.json", "pageSize=" + pageSize + "&pageNum=" + pageNum, false);
  }
}